package EX.ex;

public class ex10 {
    static String x = "avdnav";
    public static void pushSubX(){
        System.out.println(x.substring(0,4));
    }
    public static void pushIndexOfX(){
        System.out.println(x.indexOf("v",x.indexOf("v")+1));
    }
    public static void pushIndexOfX2(){
        System.out.println(x.indexOf("av",x.indexOf("av")+1));
    }
}

class ex10Text{
    public static void main(String[] args) {
        ex10.pushIndexOfX2();
    }
}